// UES module environment
// Made by (c)The_GTA [All rights reserved]
#include "uescript.h"
ues_core_api_t *c_api;

ues_api_t* UESLoadAPI(ues_core_api_t *capi)
{
	ues_api_t *api=malloc(sizeof(ues_api_t));

	api->CreateEnv=UES_CreateEnvironment;
	api->CreateStruct=UES_CreateStruct;
	api->CreateSingleDef=UES_CreateSingleDef;
	api->GetStructByName=UES_GetStructByName;
	api->GetSingleDefByName=UES_GetSingleDefByName;
	api->CreateArgArea=UES_CreateArgumentalArea;
	api->InitFunction=UES_InitFunction;
	api->Load=UES_Load;
	api->FreeBinary=UES_FreeBinaryByCode;
	api->FreeEnvironment=UES_FreeEnvironment;
#ifdef _DEBUG
	api->PrintMemoryUsage=UES_PrintMemoryUsage;
#endif

	c_api=capi;

	return api;
}